package com.woniu.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月23日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_change")
public class TChange implements Serializable {

    private static final long serialVersionUID = 1L;

    /*
     * 转单表
     */
    @ApiModelProperty(name = "id",value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /*
     * 订单号
     */
    @ApiModelProperty(name = "orderNum",value = "订单号")
    @TableField("order_num")
    private String orderNum;

    /*
     * 转单员工id
     */
    @ApiModelProperty(name = "employId",value = "转单员工id")
    @TableField("employ_id")
    private Long employId;

    /*
     * 目标员工id
     */
    @ApiModelProperty(name = "targetId",value = "目标员工id")
    @TableField("target_id")
    private Long targetId;

    /*
     * 状态0待审核1已完成
     */
    @ApiModelProperty(name = "state",value = "状态0待审核1已完成")
    @TableField("state")
    private Long state;

    /*
     * 转单类型1员工操作2站点操作
     */
    @ApiModelProperty(name = "type",value = "转单类型1员工操作2站点操作")
    @TableField("type")
    private Long type;

    /*
     * 父转单id
     */
    @ApiModelProperty(name = "parentId",value = "父转单id")
    @TableField("parent_id")
    private Long parentId;

    /*
     * 转单原因(骑手填写)
     */
    @ApiModelProperty(name = "reason",value = "转单原因(骑手填写)")
    @TableField("reason")
    private String reason;

    /*
     * 转单时间
     */
    @ApiModelProperty(name = "time",value = "转单时间")
    @TableField("time")
    private LocalDateTime time;


}
